package org.goldfish.demo.apicall.analysis.code.upload.model;

import lombok.Builder;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.io.File;
@Builder
@RequiredArgsConstructor
public class SourceFileAnalysis {
    @Getter
    private final File file;
    @Getter
    private final String content;
    private final StringBuilder response = new StringBuilder();
    public synchronized  void appendToken(CharSequence token){
        response.append(token);
    }

    public synchronized String getResponse() {
        return response.toString();
    }
}
